package com.ming.sps.server.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/** 
* @ClassName DateTime 
* @Description TODO 日期时间工具类
* @author Liu Ming
* @date 2013-7-17 下午04:43:41 
* @version V1.0  
*/ 
public class DateTimeUtil {

	public static SimpleDateFormat sdf = null;
	
	public static String getDateTime(){
		sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return sdf.format(new Date());
	}
	public static String getDateTime1(){
		sdf = new SimpleDateFormat("yyyyMMddHHmmss");
		return sdf.format(new Date());
	}
	public static String getDate(){
		sdf = new SimpleDateFormat("yyyy-MM-dd");
		return sdf.format(new Date());
	}
	public static String getYear(){
		sdf = new SimpleDateFormat("yyyy");
		return sdf.format(new Date());
	}
	

}
